<@mits.headerDiv />
<div class="Main" id="Main">
	<!--屏幕切换-->
   
    
    
	<!--左边-->

	<!--右边-->
	<div class="Main_body" id="Main_body">
			  <div class="Main_bodyListBar">
				<div class="Main_bodyListBar_head"><span>部门信息</span> </div>
		<@mits.showActionMsg />
	    <div class="Main_bodyListBar_body">
	    <form method="post" action="" id="myform" name="myform">
				<table width="100%" border="0" cellpadding="0" cellspacing="1" class="editTable">
            <tbody>
				<tr >
  				<td class="title">机关名称<em>*</em></td>
                <td class="content">
                <input type="hidden" name="dept.id" value="${dept?if_exists.id?if_exists}" width="1"   class="input_short" id="dept.id"  />
                <input type="text" name="dept.departmentName" value="${dept?if_exists.departmentName?if_exists}"  class="input_short" id="dept.departmentName" dataType="Require"  msg="部门名称不能为空" maxlength="100" /></td>
                  <td class="title">机关级别<em>*</em></td>
                <td class="content">
                <select id="dept.departmentType" name="dept.departmentType">
                <option value="支队" <#if dept?if_exists.departmentType?if_exists =="支队">selected</#if>>支队</option>
                 <option value="大队" <#if dept?if_exists.departmentType?if_exists =="中队">selected</#if> >大队</option>
                  <option value="中队" <#if dept?if_exists.departmentType?if_exists =="大队">selected</#if>>中队</option>
                </select> </td>				
                				
				</tr>
					<tr >
  				<td class="title">机关地址</td>
                <td class="content"><input type="text" name="dept.departmentAddress" value="${dept?if_exists.departmentAddress?if_exists}"  class="input_short" id="dept.departmentAddress" maxlength="200" /></td>
  				<td class="title">联系电话</td>
                <td class="content"><input type="text" name="dept.telephone" value="${dept?if_exists.telephone?if_exists}"  class="input_short" id="dept.telephone" maxlength="200" /></td>		               				
				</tr>				
				</tbody>
				  </table>
				  </form>
			</div>
				<div class="Main_bodyListBar_bottom">
				  <div class="Main_bodyListBar_button">
				  <input type="button" class="button" onclick="saveOrUpdate()" value="保存" /> 
				  <input type="button" class="button" onclick="window.location='${base}/auth/system/departmentList.action?cleanSucMsg=true'" value="返回" />
				  </div>
					
				</div>
			<div class="Main_bodyListBar_foot"></div>
		  </div>
		</div>
	
</div>
<script lanague="javascript">
 function saveOrUpdate(){
 		trimAllElements($('myform'));
        if(Validator.Validate($('myform'),3)){
 			$('myform').action ="${base}/auth/system/departmentSaveOrUpdate.action";
		    $('myform').submit();       
        }
	
		      	     
}   
	
</script>
<@mits.footerDiv />


